package com.example.bbs.agent.proxy;

/**
 * author: VC
 * create: 2021/7/16 9:22
 * version: 1.0.0
 */
public class Main {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();

        //创建学生(委托对象,真实对象)
        Student stu = new Student();
        //创建代理对象
        StudentProxy proxy = new StudentProxy(stu);

        teacher.getFee(proxy);
    }
}
